<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>3D动画</title>
		<style type="text/css">
			body{
				/* 透视 */
				perspective: 1000px;/* 透视值的大小 */
				perspective-origin: 50% 50%;/* 透视点 */
			}
			div{
				width: 400px;
				height: 400px;
			}
			.box1{
				/* 给盒子开启3D空间效果 */
				transform-style: preserve-3d;
				margin: 200px auto;
				background-color:rgba(0, 255, 255, 0.4/* 透明度取值0——1 */);
			}
			.box2{
				background-color:hotpink;
				transform: rotateX(45deg);
			}
		</style>
	</head>
	<body>
		<div class="box1">
			<div class="box2"></div>
		</div>
	</body>
</html>
